#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	int arr[10] = { 0 };
	for (i = 0;i < 10;i++)
	{
		scanf("%d", &arr[i]);
	}
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (i = 1;i <= 5;i++)
	{

		for (j = 1;j <= sz - 1;j++)
		{
			if (arr[j - 1] > arr[j])
			{
				int tmp = arr[j];
				arr[j] = arr[j - 1];
				arr[j - 1] = tmp;
			}
		}
	}
	for (int a = 0;a < sz;a++)
	{
		printf("%d ", arr[a]);
	}
	return 0;
}